<template>
  <div class="block">
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :page-sizes="[4, 10, 20, 40]"
      :current-page="PageNum"
      :page-size="PageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
  </div>
</template>

<script>
export default {
    props:{
        total:{
            type:Number,
            // default:100
        },
        PageSize:{
            type:Number,
            // default:10
        },
        PageNum:{
            type:Number
        }
    },
    methods: {
      handleSizeChange(val) {
        this.$emit('ChangeSize',val)
      },
      handleCurrentChange(val) {
        this.$emit('ChangeNum',val)
      }
    },
    data() {
      return {

      };
    }
}
</script>

<style scoped>

</style>